<html>
<head><meta charset="utf-8"><title>Running `-Z instrument-coverage` on the compiler itself · t-compiler · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/index.html">t-compiler</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Running.20.60-Z.20instrument-coverage.60.20on.20the.20compiler.20itself.html">Running `-Z instrument-coverage` on the compiler itself</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="245381712"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Running%20%60-Z%20instrument-coverage%60%20on%20the%20compiler%20itself/near/245381712" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Aaron Hill <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Running.20.60-Z.20instrument-coverage.60.20on.20the.20compiler.20itself.html#245381712">(Jul 08 2021 at 22:51)</a>:</h4>
<p>Now that we have llvm-based source coverage support, I think it would be interesting to use it on the compiler itself. We could generate one <code>.profraw</code> file for each test file in <code>src/test/ui</code>, and combine them to get a coverage report for the compiler itself</p>



<a name="245381800"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Running%20%60-Z%20instrument-coverage%60%20on%20the%20compiler%20itself/near/245381800" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Aaron Hill <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Running.20.60-Z.20instrument-coverage.60.20on.20the.20compiler.20itself.html#245381800">(Jul 08 2021 at 22:52)</a>:</h4>
<p>Getting even fancier, we could integrate this with our github-actions workflow to something like coveralls or codecov</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>